/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.encapsulation.model;

/**
 *
 * @author Enkosi
 */
public class BankAccount {
    private String accounNumber;
    private String name;
    private String surname;
    private int amount;
    
    public BankAccount(String accounNumber, String name, String surname,int amount){
        this.accounNumber = accounNumber;
        this.name = name;
        this.surname = surname;
        this.amount = amount;
    }
    /**
     * @return the accounNumber
     */
    public String getAccounNumber() {
        return accounNumber;
    }

    /**
     * @param accounNumber the accounNumber to set
     */
    public void setAccounNumber(String accounNumber) {
        this.accounNumber = accounNumber;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the surname
     */
    public String getSurname() {
        return surname;
    }

    /**
     * @param surname the surname to set
     */
    public void setSurname(String surname) {
        this.surname = surname;
    }

    /**
     * @return the amount
     */
    public int getAmount() {
        return amount;
    }

    /**
     * @param amount the amount to set
     */
    public void setAmount(int amount) {
        this.amount = amount;
    }
    
    @Override
    public String toString() {
        return this.name + " " + this.surname + " " + this.accounNumber;
    }    
}
